$(function () {
    $("button").click(function () {


        var username = $("#exampleInputEmail1").val()
        
        var password = $("#exampleInputEmail1").val()
        

        pxmu.loading("请求中，请稍侯...")
        $.post("/lession05/login", { username, password }, function (data) {
           if(!data.error){
            pxmu.success("你真棒！！！居然没有忘记密码")

            localStorage.setItem("username",username)
            setTimeout(function () {
                location.href = "../index.html"
            },1000)
           }
        })
    })
})